/***********************************************************************************************
 * Copyright (C) 2022 China Southern Power Grid Shenzhen Digital Grid Research Institute Co.,Ltd
 * All Rights Reserved.
 * 本软件为南方电网深圳数字电网研究院有限公司开发研制。
 * 未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件。
 ***********************************************************************************************/

package com.lrj.email;

import javax.mail.MessagingException;

/**
 * @version 10月 11, 2023
 * @since JDK1.8
 */
public class EmailService {
    private String username;
    private String authorizeCode;

    public void send(String recipientEmail, String subject, String content) throws MessagingException {
        EmailUtil.send(username, authorizeCode, recipientEmail, subject, content);
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setAuthorizeCode(String authorizeCode) {
        this.authorizeCode = authorizeCode;
    }
}
